home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / tex / egrep.zip / REGX.ZIP / MAKEFILE < prev    next >
Text File  |  1987-06-19  |  1KB  |  43 lines

  1. # Things you might want to put in ENV and LENV:
  2. # -Dvoid=int        compilers that don't do void
  3. # -DCHARBITS=0377    compilers that don't do unsigned char
  4. # -DSTATIC=extern    compilers that don't like "static foo();" as forward decl
  5. # -DSTRCSPN        library does not have strcspn()
  6. # -Dstrchr=index    library does not have strchr()
  7. # -DERRAVAIL        have utzoo-compatible error() function and friends
  8. ENV= -DSTRCSPN -Dstrchr=index
  9. LENV= -DSTRCSPN -Dstrchr=index
  10.  
  11. # Things you might want to put in TEST:
  12. # -DDEBUG        debugging hooks
  13. # -I.            regexp.h from current directory, not /usr/include
  14. TEST= -I.
  15.  
  16. # Things you might want to put in PROF:
  17. # -Dstatic='/* */'    make everything global so profiler can see it.
  18. # -p            profiler
  19. PROF=
  20.  
  21. CFLAGS=-O $(ENV) $(TEST) $(PROF)
  22. LINTFLAGS=$(LENV) $(TEST) -ha
  23. LDFLAGS=
  24.  
  25. OBJ=regexp.obj regsub.obj
  26. LSRC=regexp.c regsub.c regerror.c
  27. DTR=README dMakefile regexp.3 regexp.h regexp.c regsub.c regerror.c \
  28.     regmagic.h try.c timer.c tests
  29.  
  30. regexp.obj:    regexp.c regexp.h regmagic.h
  31.     cl regexp.c -c -O
  32.  
  33. regsub.obj:    regsub.c regexp.h regmagic.h
  34.     cl regsub.c -c -O
  35.  
  36. try:    try.obj $(OBJ)
  37.     cl $(LDFLAGS) try.obj $(OBJ) -O -o try
  38.  
  39. # Making timer will probably require putting stuff in $(PROF) and then
  40. # recompiling everything; the following is just the final stage.
  41. timer:    timer.obj $(OBJ)
  42.     cl $(LDFLAGS) $(PROF) timer.o $(OBJ) -obj timer
  43.